/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file    gpio.h
  * @brief   This file contains all the function prototypes for
  *          the gpio.c file
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __GPIO_H__
#define __GPIO_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "main.h"

/* USER CODE BEGIN Includes */
/* USER CODE END Includes */

/* USER CODE BEGIN Private defines */
#define LED2_SER GPIO_PIN_0
#define LED2_RCLK GPIO_PIN_1
#define LED2_SCLK GPIO_PIN_2
#define DIG_SER GPIO_PIN_3
#define DIG_RCLK GPIO_PIN_4
#define DIG_SCLK GPIO_PIN_5
#define LED1_RCLK GPIO_PIN_8
#define LED1_SCLK GPIO_PIN_9
#define LED1_SER GPIO_PIN_2 /*B2*/
#define SN_LED1 0x01
#define SN_LED2 0x02
#define SN_DIG 0x03
/* USER CODE END Private defines */

void MX_GPIO_Init(void);

/* USER CODE BEGIN Prototypes */
extern uint8_t VideoMem[6];
void Open_Led(void);
void Close_Led(void);
void Toggle_Led(void);
void ScanfKey(void);
void SN74HC595_Send_Data(char snNum,uint16_t sendValue);
void ShowNum(uint8_t row,uint8_t col,uint8_t value);
void ShowNums(void);
/* USER CODE END Prototypes */

#ifdef __cplusplus
}
#endif
#endif /*__ GPIO_H__ */

